package com.innazis.jfrogsurvey.service;

import android.app.Service;
import android.content.Context;
import android.content.Intent;
import android.os.IBinder;
import android.util.Log;
import android.widget.Toast;

import java.util.Timer;

/**
 * Created by Inna on 05.06.14.
 */
public class SendDataService extends Service {
    private static SendDataService instance;

    private static final String TAG = "SendDataService";
    private Context self;

    private Timer timer;

    @Override
    public IBinder onBind(Intent intent) {
        return null;
    }

    public static boolean isRunning() {
        return instance != null;
    }

    @Override
    public void onDestroy() {
        Log.d(TAG, "onDestroy");
        instance = null;
        timer.cancel();
    }

    @Override
    public void onStart(Intent intent, int startid) {
		Toast.makeText(this, TAG + " Started", Toast.LENGTH_LONG).show();

    }
}
